<?php
$ua = $_SERVER["HTTP_USER_AGENT"];
$android = strpos($ua, 'Android') ? true : false;
$blackberry = strpos($ua, 'BlackBerry') ? true : false;
$iphone = strpos($ua, 'iPhone') ? true : false;
$palm = strpos($ua, 'Palm') ? true : false;
if ($android || $blackberry || $iphone || $palm) {
// 301 redirection
echo iphone111;
exit();
}
?>
